#include ".\mygamescrollbar.h"

CMyGameScrollBar::CMyGameScrollBar(void)
{
	m_rMiddleRect.left = 0;
	m_rMiddleRect.right = 0;
	m_rMiddleRect.top = 0;
	m_rMiddleRect.bottom = 0;
	m_MouseState = MBMS_Normal;
	m_btnUp.Create(this,"btnUp",0,0,0,0,"",FALSE);
	m_btnDown.Create(this,"btnDown",0,0,0,0,"",FALSE);	
}

CMyGameScrollBar::~CMyGameScrollBar(void)
{
}

BOOL CMyGameScrollBar::OnCreate()
{
	return TRUE;
}

void CMyGameScrollBar::LoadRes(LPCSTR szUpBtnFileName,LPCSTR szDownBtnFileName,LPCSTR szMiddleBtnFileName,LPCSTR szBackFileName)
{
	m_btnUp.LoadBmpFromFile(szUpBtnFileName);
	m_btnDown.LoadBmpFromFile(szDownBtnFileName);
	m_sprMiddle.Load(NULL,szMiddleBtnFileName);
	m_sprBack.Load(NULL,szBackFileName);
	return;
}

BOOL CMyGameScrollBar::OnChildMsg(ChildWndMsgType MsgType,string strChildWndName,void* pUserData)
{
	if (MsgType == MT_Btn_Click)
	{
	}
	return TRUE;
}

void CMyGameScrollBar::OnLBtnDown(int x,int y)
{
	return;
}

void CMyGameScrollBar::OnLBntUp(int x,int y)
{
	return;
}

void CMyGameScrollBar::OnMouseMove(int x,int y)
{
	return;
}